home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
faretimes.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
1KB
|
26 lines
/* RCSVER $Id: faretimes.sql,v 1.3 1999-02-24 11:56:27-06 randy CURRENT $ */
/* *************************************************************************
* Copyright (C) 1998, Agent Systems, Inc. All Rights Reserved.
*
* Name: faretimes.sql
* Date: 12/28/1998
* memo: Randy Wood
* Description: Create the faretimes table. This table assigns a fareset to
* certain times/days of the week.
* Changes:
************************************************************************* */
CREATE TABLE faretimes
(
beg_time VARCHAR2(5), /* Beginning time for this fareset */
end_time VARCHAR2(5), /* Ending time for this fareset */
day NUMBER(1), /* Day of week (0-6) */
fareset_id NUMBER(38), /* ID of fareset */
config_num NUMBER(38)
CONSTRAINT ref_faretimes2 REFERENCES configset(num)
ON DELETE CASCADE,
CONSTRAINT fk_faretimes FOREIGN KEY (fareset_id, config_num)
REFERENCES faresets(id, config_num) ON DELETE CASCADE,
CONSTRAINT pk_faretimes PRIMARY KEY
(beg_time, end_time, day, config_num)
);